﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace Nascenture.Models
{
    public class Contact
    {
        public int ID { get; set; }
        [Required(ErrorMessage="Required")]
        public string Name { get; set; }
        [Required(ErrorMessage = "Required")]
        //[RegularExpression(@"\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b")]
        public string EmailID { get; set; }
        public string Phone { get; set; }
        public string Subject { get; set; }
        public string Message { get; set; }
    }
}